package com.hqyj.springcloud.service.impl;

import com.hqyj.springcloud.mapper.OrderMapper;
import com.hqyj.springcloud.pojo.Order;
import com.hqyj.springcloud.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public boolean add(Order order){
        boolean result = false;
        int insertOrder = orderMapper.insertOrder(order);
        if (insertOrder > 0){
            result = true;
        }
        return result;
    }
}
